<div data-page="<{$pageName}>" class="page pay-page UserPage-<{$pageName}>">
    <div class="page-content">
     <form method="post" id="form-withdraw" data-type="ajaxSubmit" action="<{:U('doWithdraw')}>">
        <div class="pay-content" >
              
<div class="item mgt10 item2" >
                    <div class="col-xs-4" >到账账户</div>
                    <div class="col-xs-8">
                        <div class="item_info light"><a href="<{:U('withdraw_set')}>" ><{$account.bankName}>（<{$account.show_account}>）</a></div>
                        <div class="item_info light"> <p>提现到<{$account.bankName}>，单笔最高5万</p></div>
                    </div>
                    <div class="clear"></div>
                </div>

                <div class="item " style="padding:20px">
                <div class="item_info" >提现金额</div>
                    <div class="item_money">
                    <div class="s_left">￥</div>
                    <div class="s_left" style="width:75%">
                        <input type="text" placeholder="" readonly value="<{$user_info['avail_money']}>" name="money" id="item-input-money" class="item-input">
                    </div>
                    <div class="clear"></div>
                    </div>

                    <!-- <div class="item_info light tip tip1">零钱余额￥<span id="my_account" money="<{$user_info['avail_money']}>"><{$user_info['avail_money']}></span> <a onclick="account_all(this)" class="mgl10">全部提现</a></div> -->
                    <div class="item_info light tip tip2">额外扣除￥<span id="fee_text">0</span>手续费,<span>满1000元免手续费</span></div>
                    <!-- <div class="item_info red none tip tip3">输入金额超过钱包金额</div> -->

                </div>
                <!-- <div class="row  item mgt10">
                    <div class="col-xs-4">备注</div>
                    <div class="col-xs-8">
         
                        <input type="text" maxlength="20" placeholder="20个字以内" name="remark" class="item-input">
                    </div>
                </div> -->
                <!-- <div class="row  item mgt10">
                    <div class="col-xs-4">支付方式</div>
                    <div class="col-xs-8">
                    <label><input type="radio" checked name="payment_id" value="41"> 支付宝</label> 
                    <label class="mgl20"><input type="radio" name="payment_id" value="44"> 微信</label> 
                    </div>
                </div> -->
        </div>
        <p align="center" class="light mgt20">2小时内到帐</p>
        <button type="submit" style="margin-top:0px" class="btn btn-success btn-next" >提现</button>
        </form>
    </div>
<script type="text/javascript">

var all_money=avail_money=<{$user_info['avail_money']}>;
var free_withdraw_count=<{$free_withdraw_count}>;
var withdraw_count=<{$user_info['withdraw_count']}>;//用户提现次数
if(avail_money<1000 && withdraw_count>free_withdraw_count){
     $("#fee_text").text("1");
     avail_money=avail_money-1;
}
avail_money=avail_money.toFixed(2);
if(!(avail_money>0)){
    $("#form-withdraw .btn-next").attr("disabled","disabled");
    $("#item-input-money").val(all_money);
}else{
    $("#item-input-money").val(avail_money);
}

$("#form-withdraw").on("ajaxSubmitSuccess", function(e, content) {
       var data = JSON.parse(content);
    if (data.error == 0) {
        hiApp.alert(data.msg);
        hiApp.jump("/User/order");
    } else {
        hiApp.alert(data.msg);
    }
})

</script>
</div>

